import Vue from "vue";
import VueRouter from "vue-router";
import A from "../views/A.vue";
import B from "../views/B.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/fankui",
    component: () => import("../views/FanKui.vue"),
  },
  {
    path: "/num",
    component: () => import("../views/Num.vue"),
  },
  {
    path: "/cwmr",
    component: () => import("../views/cwmr.vue"),
  },
  {
    path: "/baoxian",
    name: "BAOXIAN",
    component: () => import("../views/BaoXian.vue"),
  },
  {
    path: "/cwym",
    component: () => import("../views/cwym.vue"),
  },

  {
    path: "/cwxz",
    name: "CLEAR",
    component: () => import("../views/cwxz.vue"),
  },
  {
    path: "/service",
    component: () => import("../views/Service.vue"),
  },
  {
    path: "/zz",
    component: () => import("../views/zz.vue"),
  },
  {
    path: "/mm",
    component: () => import("../views/MM.vue"),
  },
  {
    path: "/ly",
    component: () => import("../views/LY.vue"),
  },
  {
    path: "/qp",
    component: () => import("../views/wode.vue"),
  },
  {
    path: "/pet",
    name: "pet",
    component: () => import("../views/petView.vue"),
  },
  {
    path: "/details",
    name: "details",
    component: () => import("../views/detailsView.vue"),
  },
  {
    path: "/dog",
    name: "dog",
    component: () => import("../views/dogType.vue"),
  },
  {
    path: "/a",
    name: "a",
    component: A,
  },
  {
    path: "/b",
    name: "b",
    component: B,
  },
  {
    path: "/dd",
    name: "DINGDAN",
    component: () => import("../views/DingDan.vue"),
  },
  {
    path: "/fuwu",
    name: "FUWU",
    component: () => import("../views/FuWu.vue"),
  },
  {
    path: "/Adopt",
    name: "adopt",
    component: () => import("../views/Adopt.vue"),
  },
  {
    path: "/Chat",
    name: "chat",
    component: () => import("../views/Chat.vue"),
  },
  {
    path: "/ziliao",
    name: "ZiLiao",
    component: () => import("../views/ZiLiao.vue"),
  },
  {
    path: "/text",
    name: "TEXT",
    component: () => import("../views/MeText.vue"),
    // children: [
    //   {
    //     path: "/ziliao",
    //     name: "ZiLiao",
    //     component: () => import("../views/ZiLiao.vue"),
    //   },
    // ],
  },
  {
    path: "/me",
    name: "ME",
    component: () => import("../views/Me.vue"),
  },
  {
    path: "/sousuo",
    name: "sousuo",
    component: () => import("../views/SouSuo.vue"),
  },
  {
    path: "/shangpin",
    name: "/shangpin",
    component: () => import("../views/ShangPin.vue"),
  },
  {
    path: "/baike",
    name: "baike",
    component: () => import("../views/BaiKe.vue"),
  },
  {
    path: "/cwxq",
    name: "cwxq",
    component: () => import("../views/CwXq.vue"),
  },
  {
    path: "/",
    name: "shouye",
    component: () => import("../views/ShouYe.vue"),
    // children:[{
    //   path:'baike',
    //   component:() =>import('../views/BaiKe.vue')
    // }]
  },
];
const router = new VueRouter({
  mode: "hash",
  base: process.env.BASE_URL,
  routes,
});

export default router;
